package com.gzhryc.system.dto;

import java.util.List;

import com.gzhryc.common.xml.annotation.XmlElement;

@XmlElement("config")
public class RoleConfig {

	@XmlElement("role")
	private List<Item> roles;

	public List<Item> getRoles() {
		return roles;
	}

	public void setRoles(List<Item> roles) {
		this.roles = roles;
	}

	public static class Item {

		private String name;
		private String code;
		private String note;

		@XmlElement("menu")
		private List<Menu> menus;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getNote() {
			return note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		public List<Menu> getMenus() {
			return menus;
		}

		public void setMenus(List<Menu> menus) {
			this.menus = menus;
		}

	}

	public static class Menu {

		private String link;
		private String permission;

		public String getLink() {
			return link;
		}

		public void setLink(String link) {
			this.link = link;
		}

		public String getPermission() {
			return permission;
		}

		public void setPermission(String permission) {
			this.permission = permission;
		}
	}
}
